from seasun.model import get_connection
from seasun.model.admin import Admin
from seasun.model.user_config import User_config
_db = get_connection()
admins = _db.query(User_config).filter((User_config.wstatus == 1) | (User_config.xstatus == 1))
for admin in admins:
    print(admin.id)